#ifndef USER_H
#define USER_H
#include <QString>
#include <QPixmap>
#include "chat.h"
#include "localdb.h"

class user
{
    public:
    QString id;
    QString name;
    QString ip;
    QString job;
    QPixmap picture;
    user(QString nid, QString nname = "momo", QString nip = "255.255.255.255",
        QString njob="unknown",QPixmap npicture = QPixmap(":/new/prefix1/images/456.jpg"));
    //message* msg;
    //small_message* smsg;
    ChatWidget* chat;

    void set_name(QString);
    void set_ip(QString);
    void set_picture(QString);
    void show_chat();
};

#endif // USER_H
